package com.wuliu.driver.mapper;

import com.wuliu.driver.pojo.Car;
import com.wuliu.driver.pojo.Orders;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Administrator
* @description 针对表【car】的数据库操作Mapper
* @createDate 2025-04-17 14:22:14
* @Entity com.wuliu.driver.pojo.Car
*/
public interface CarMapper {
    //提交审核
    int insert(Car car);
    //查询该用户的审核
    Integer select(Integer did);
    //修改用户状态
    int updStatus(Integer did);

    @Select("SELECT * \n" +
            "FROM car\n" +
            "WHERE did=#{id}")
    List<Car>che(Integer id);

    //查询该用户的车辆
    List<Car> cha(Integer did);
    @Select("SELECT * \n" +
            "FROM `orders`\n" +
            "WHERE did=#{id}")
    List<Orders> yun(Integer id);
}
